/**
 * @Project: InteractAPI
 * @Title: InteractStruct.java
 * @Package com.j99view.interact
 * @Description: TODO
 * Copyright: Copyright (c) 2010 
 * Company:ENDER.crop
 * 
 * @author ender
 * @date 2013-8-18 下午10:26:52
 * @version V1.0.0
 */
package com.j99view.interact;

/**
 * @ClassName: InteractStruct
 * @Description: TODO
 * @author ender
 * @date 2013-8-18 下午10:26:52
 * 
 */
public class InteractStruct {
	
	public final static String ACTION="action";
	public final static String EVENT="event";
	
	public final static int DEFAULTINT = 0;
	
	/**
	
	  * 创建一个新的实例 InteractStruct. 
	  * <p>Title: </p>
	  * <p>Description: </p>
	  */
	public InteractStruct(String type) {
		super();
		this.head=(byte) 0xff;
		if(type == ACTION){
			this.subHead=0x02;
		}else if(type == EVENT){
			this.subHead=0x01;
		}
		
		
	}
	
	private byte head;
	private byte subHead;
	
	private int type;
	private int subType;

	private int value1;
	private int value2;
	private int value3;
	private int value4;

	private int argLen;
	private int arg;
	
	
	/**
	 * @return the head
	 */
	public byte getHead() {
		return head;
	}
	/**
	 * @param head the head to set
	 */
	public void setHead(byte head) {
		this.head = head;
	}
	/**
	 * @return the subHead
	 */
	public byte getSubHead() {
		return subHead;
	}
	/**
	 * @param subHead the subHead to set
	 */
	public void setSubHead(byte subHead) {
		this.subHead = subHead;
	}
	/**
	 * @return the type
	 */
	public int getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(int type) {
		this.type = type;
	}
	/**
	 * @return the subType
	 */
	public int getSubType() {
		return subType;
	}
	/**
	 * @param subType the subType to set
	 */
	public void setSubType(int subType) {
		this.subType = subType;
	}
	/**
	 * @return the value1
	 */
	public int getValue1() {
		return value1;
	}
	/**
	 * @param value1 the value1 to set
	 */
	public void setValue1(int value1) {
		this.value1 = value1;
	}
	/**
	 * @return the value2
	 */
	public int getValue2() {
		return value2;
	}
	/**
	 * @param value2 the value2 to set
	 */
	public void setValue2(int value2) {
		this.value2 = value2;
	}
	/**
	 * @return the value3
	 */
	public int getValue3() {
		return value3;
	}
	/**
	 * @param value3 the value3 to set
	 */
	public void setValue3(int value3) {
		this.value3 = value3;
	}
	/**
	 * @return the value4
	 */
	public int getValue4() {
		return value4;
	}
	/**
	 * @param value4 the value4 to set
	 */
	public void setValue4(int value4) {
		this.value4 = value4;
	}
	/**
	 * @return the argLen
	 */
	public int getArgLen() {
		return argLen;
	}
	/**
	 * @param argLen the argLen to set
	 */
	public void setArgLen(int argLen) {
		this.argLen = argLen;
	}
	/**
	 * @return the arg
	 */
	public int getArg() {
		return arg;
	}
	/**
	 * @param arg the arg to set
	 */
	public void setArg(int arg) {
		this.arg = arg;
	}


}
